package com.example.demoproperties.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: gs
 * @Date: 2023/12/7 20:58
 * @Version: v1.0.0
 * @Description: TODO
 **/
@Data   //Lombok库中的注解，简单粗暴的替代了get、set、toString等方法，可详细了解其用法
@Component
public class ApplicationProperty {

    @Value("${application.name}")
    private String name;
    @Value("${application.version}")
    private String version;

}
